<?php

namespace RSP\ReseauSocialBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Message
 *
 * @ORM\Table()
 * @ORM\Entity
 */



class Message
{
    /**
    * @ORM\ManyToOne(targetEntity="RSP\UserBundle\Entity\User",inversedBy="messages")
    *@ORM\JoinColumn(nullable=false)
    */
    private $user;
    
    
    
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="id_dest", type="string", length=255)
     */
    private $id_dest;

    /**
     * @var string
     *
     * @ORM\Column(name="id_exp", type="string", length=255)
     */
    private $id_exp;

    /**
     * @var string
     *
     * @ORM\Column(name="contenu", type="string", length=255)
     */
    private $contenu;

    /**
     * @var string
     *
     * @ORM\Column(name="date_envoi", type="string", length=255)
     */
    private $date_envoi;

    /**
     * @var string
     *
     * @ORM\Column(name="date_lecture", type="string", length=255)
     */
    private $date_lecture;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set id_dest
     *
     * @param string $idDest
     * @return Message
     */
    public function setIdDest($idDest)
    {
        $this->id_dest = $idDest;
    
        return $this;
    }

    /**
     * Get id_dest
     *
     * @return string 
     */
    public function getIdDest()
    {
        return $this->id_dest;
    }

    /**
     * Set id_exp
     *
     * @param string $idExp
     * @return Message
     */
    public function setIdExp($idExp)
    {
        $this->id_exp = $idExp;
    
        return $this;
    }

    /**
     * Get id_exp
     *
     * @return string 
     */
    public function getIdExp()
    {
        return $this->id_exp;
    }

    /**
     * Set contenu
     *
     * @param string $contenu
     * @return Message
     */
    public function setContenu($contenu)
    {
        $this->contenu = $contenu;
    
        return $this;
    }

    /**
     * Get contenu
     *
     * @return string 
     */
    public function getContenu()
    {
        return $this->contenu;
    }

    /**
     * Set date_envoi
     *
     * @param string $dateEnvoi
     * @return Message
     */
    public function setDateEnvoi($dateEnvoi)
    {
        $this->date_envoi = $dateEnvoi;
    
        return $this;
    }

    /**
     * Get date_envoi
     *
     * @return string 
     */
    public function getDateEnvoi()
    {
        return $this->date_envoi;
    }

    /**
     * Set date_lecture
     *
     * @param string $dateLecture
     * @return Message
     */
    public function setDateLecture($dateLecture)
    {
        $this->date_lecture = $dateLecture;
    
        return $this;
    }

    /**
     * Get date_lecture
     *
     * @return string 
     */
    public function getDateLecture()
    {
        return $this->date_lecture;
    }

    /**
     * Set user
     *
     * @param \RSP\UserBundle\Entity\User $user
     * @return Message
     */
    public function setUser(\RSP\UserBundle\Entity\User $user)
    {
        $this->user = $user;
    
        return $this;
    }

    /**
     * Get user
     *
     * @return \RSP\UserBundle\Entity\User 
     */
    public function getUser()
    {
        return $this->user;
    }
}